import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import Router from './router';
// Provider:提供数据源的
import {
    Provider
} from 'react-redux';
import configureStore from './redux/store/configureStore';
import registerServiceWorker from './registerServiceWorker';
import './config.js';
const store = configureStore();
ReactDOM.render( <
        Provider store = {
            store
        } >
        <
        Router / >
        <
        /Provider>, document.getElementById('root'));
        registerServiceWorker();

        if (module.hot) {
            module.hot.accept()
        }